import { createApp } from 'vue'
import App from './App.vue'
//引入element-plus 插件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//element-plus国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn,
})
//main.ts
import 'virtual:svg-icons-register'
//引入自定插件
import gloalComponent from '@/components'
//安装自定义插件
app.use(gloalComponent)
//引入模板的全局样式
import '@/styles/index.scss'

//引入路由进行注册
import router from './router'
app.use(router)

//  引入仓库
import pinia from './store'
//安装仓库
app.use(pinia)
//引入路由守卫 路由鉴权
import './permisstion'
//将应用挂载到挂载点上
app.mount('#app')
